package com.ermao.controller;

import com.ermao.service.WheelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Ermao
 * Date: 2021/12/26 9:49
 */
@RestController
public class WheelController {

	@Autowired
	private WheelService wheelService;

	@GetMapping("/wheels")
	public String listAllWheels() {
		return wheelService.selectAllWheels().toString();
	}
}
